﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>中间部分的左侧</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
	@IMPORT url("css/base.css");
	
	.center-body-right{
	width:280px;
	height:100%;
	float:right;
	}
	
	.searchbox {
	margin-top:10px;
	width: 230px;
	height: 34px;
	margin-left: 10px;
	margin-bottom: 10px;
	border: solid 1px #E9EBF0;
	}
	.search_textbox{
		float: left;
		width: 158px;
		padding:10px 10px;
		border: none;
		height: 34px;
		color: #555;
		margin-top: 0px
	}
	.search_button{
		float: left;
		width: 70px;
		text-align: center;
		border: none;
		height: 32px;
		cursor: pointer;
		background: transparent;
		color: #555;
		border-left: solid 1px #E9EBF0;
	}
	.search_button:hover{
		background: #E9EBF0;
	}
	
	.body-userinfo {
		font-family: "microsoft yahei";
		text-align: center;
	}
	.body-userinfo table tr td {
		padding: 4px;
	}
	
	.a_username {
		font-size: 16px;
		color: #919191;
		padding-left: 80px;
	}
	.a_username:hover {
		text-decoration: none;
	}
	.a_login {
		font-size: 16px;
		color: #919191;
		padding-left: 80px;
	}
	.a_login:hover {
		text-decoration: none;
	}
	.infonames{
	font-size: 16px;
	padding-left: 90px;
	}
	.userhead {
		width: 66px;
		height: 66px;
		border-radius: 33px;
		cursor: pointer;
	}
	.userleveltable {
		font-size: 12px;
		color: #919191;
		width: 100%;
	}
	.userleveltable tr td:nth-child(1) {
		text-align: right;
		width: 30%;
	}
	.userleveltable tr td:nth-child(2) {
		text-align: left;
	}
	.userlevelprogressbar {
		border: solid 1px #1992fc;
		height: 16px;
		text-align: center;
		width: 104px;
		position: relative;
		cursor: pointer;
	}
	.userlevelprogressnumber {
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		height: 100%;
		color: red;
		line-height: 14px;
		font-size: 10px;
		font-family: "youyuan";
	}
	.userlevelprogressbar2 {
		top: 1px;
		left: 1px;
		height: 12px;
		position: absolute;
		background: #1992fc;
	}
	.pyt-icon {
		display: inline-block;
		background: #1992FC;
		color: white;
		width: 16px;
		height: 16px;
		text-align: center;
		font-size: 10px;
		cursor: pointer;
	}
	.pmf {
		padding: 10px 6px 10px 14px;
		width: 100%;
	}
	.mf_class {
		position: relative;
		float: left;
		width: 70px;
		height: 38px;
		line-height: 38px;
		text-align: center;
		background: white;
		cursor: pointer;
		transition: color 1s;
		color: #398bfc;
		border: solid 1px #ddd;
		border-right: none;
		border-left: none;
	}
	.mf_class a {
	text-decoration:none;
	color: #398bfc;
	}
	
	.mf_class:HOVER{
	background-color: #398bfc;
	}
	.mf_class:HOVER a{
	color: white;
	}
	
	
	
	.text_center{
		padding: 5px 6px 10px 20px;
		width: 100%;
	}
	.downloadqlt{
	padding:20px 0;
	font-family:"microsoft yahei";
	}
	.downloadqlt a{
	color:black;
	font-size:13px;
	display:block;
	text-align:center
	}
	
	</style>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>

<script type="text/javascript">
function showuserlevelprogressbar() {
	var $lv = parseInt($LUA['jifen'] / 100);
	var $num = parseInt($LUA['jifen'] % 100);
	document.getElementById("userlevelprogressnumber").innerHTML = 'Lv' + $lv + ' ' + $num + '/100';
	document.getElementById("userlevelprogressbar2").style.width = $num + '%';
	document.getElementById("userlevelprogressbar").title = '加油！还差 ' + (100 - $num) + ' 经验就升到 Lv' + ($lv + 1) + ' 了 ^_^';
}

function showxunzhang() {
	var $html = "<span class='pyt-icon' title='有天轻论坛注册会员勋章'>天</span>";
	if ($LUA['qiandaodays'] > 9) {
		$html += " <span class='pyt-icon' title='签到达人勋章 - 签到10天获得'>签</span>";
	}
	if ($LUA['sex'] == '男') {
		$html += " <span class='pyt-icon' title='帅哥勋章' style='background:royalblue'>帅</span>";
	} else if ($LUA['sex'] == '女') {
		$html += " <span class='pyt-icon' title='美女勋章' style='background:hotpink'>美</span>";
	} else {
		$html += " <span class='pyt-icon' title='人妖勋章 - 性别未知' style='background:gray'>妖</span>";
	}
	document.getElementById("userxunzhang").innerHTML = $html;
}

function qiandao($yn) {
	if ($yn == 1) {
		document.getElementById("LUA_jifen").innerHTML = parseInt(document.getElementById("LUA_jifen").innerHTML) + qiandaojifen;
		document.getElementById("LUA_tiandou").innerHTML = parseInt(document.getElementById("LUA_tiandou").innerHTML) + qiandaotiandou;
		document.getElementById("qiandaodays").innerHTML = parseInt(document.getElementById("qiandaodays").innerHTML) + 1;
		window.open('index.php?c=ding&type=qiandao&rnd=' + Math.random(), 'ifrm');
	}
	if ('TRUE' == 'TRUE' || $yn == 1) {
		document.getElementById("qiandaobtn").style.background = '#999999';
		document.getElementById("qiandaobtn").innerHTML = '已签到';
		document.getElementById("qiandaobtn").onclick = '';
		document.getElementById("qiandaobtn").title = '本次签到奖励:积分+' + qiandaojifen + ' 天豆+' + qiandaotiandou;
	}
}
$(function(){
	if("${sessionScope.login}"==""){
		$(".a_username").css("display","block");
		$(".a_login").css("display","none");
	}else{
		$(".a_username").css("display","none");
		$(".a_login").css("display","block");
		$(".infonames").html("${sessionScope.login.name}");
	}
});
</script>
  </head>
  
  <body>
   <div class="searchbox" >
    				<form name="form_search" method="get" action="searchServlet">
							<input type="hidden" name="c" value="search" />
							<input type="text" class="search_textbox" name="word" value="" >
							<input type="submit" class="search_button" value="搜索文章" />
					</form>
    						</div>
    						<div class="body—userinfo">
    							<table>
    								<tr style="padding-left:10px;">
								<td><a class="a_username" href="jsp/public/login.jsp" style="padding-left: 100px">登录</a></td>
							</tr>
							<tr>
								<td>
									<a class="a_username" href="jsp/public.showInfo.jsp">
										<img class="userhead" src="images/2.png " onerror="this.src='images/2.png'" alt="登录" style="width:80px;height:80px">
									</a>
								</td>
							<tr style="padding-left:10px;">
								<td><a class="a_login" href="jsp/public/login.jsp" style="padding-left: 100px"></a><a class="infonames"></a></td>
							</tr>
							<tr>
								<td>
									<a class="a_login" href="jsp/public.showInfo.jsp">
										<img class="userhead" src="images/2.png " onerror="this.src='images/2.png'" alt="登录" style="width:80px;height:80px">
									</a>
								</td>
							</tr>
    							<tr>
								<td>
									<table class="userleveltable">
										<Tr>
											<td>昵称:</td>
											<td><span class="nowarp block" style="width: 120px;" title="匿名游客">匿名游客</span></td>
										</tr>
										<tr>
											<td>
												等级:
											</td>
											<td>
												<div id="userlevelprogressbar" class="userlevelprogressbar" title="登陆后获取等级信息">
													<div id="userlevelprogressbar2" class="userlevelprogressbar2"></div>
													<div id="userlevelprogressnumber" class="userlevelprogressnumber">Lv0 0/100</div>
												</div>
											</td>
										</Tr>
										<tr>
											<td>积分:</td>
											<td><span id="LUA_jifen" class="nowarp block" style="width: 120px;">450</span></td>
										</tr>
										<tr>
											<td>天豆:</td>
											<td><span id="LUA_tiandou" class="nowarp block" style="width: 120px;">450</span></td>
										</tr>
										<tr>
											<td>勋章:</td>
											<td>
												<div id="userxunzhang">
													<span class="pyt-icon" title="有天轻论坛游客勋章">hi</span>
												</div>
											</td>
										</tr>
										<tr>
											<td>签到:</td>
											<td>
												<div class="qiandaodiv">
													已签到<span id="qiandaodays" style="margin-top: 10px;">45</span>天
													<span class="pyt-icon" id="qiandaobtn" onclick="qiandao();" style="width: 48px;float: right;margin-left: 80px;margin-top:-17px;">签到</span>
												</div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<!--好友 消息-->
									<div class="pmf">
										<div class="mf_class"><a href="jsp/public/postMessage.jsp">发帖</a></div>
										<div class="mf_class"><a href="jsp/public/news.jsp">消息</a></div>
										<div class="mf_class"><a href="jsp/public/friends.jsp">好友</a></div>
									</div>
								</td>
							</tr>
						</table>
						<div class="text_center"><a id="add_qqun_btn_1" href="http://www.hadsky.com/read-20-1.html"><img border="0" src="images/jrqqq.png" alt="有天技术交流群" title="有天技术交流群"></a> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=632827168&site=qq&menu=yes"><img border="0" src="images/pa.gif" alt="联系站长" title="联系站长"/></a></div>
					
						<div class="text_center p10">
<button class="xbtn2" id="question_btn_1" onclick="tiwen()">有不懂？我要提问！</button>
</div>
<div class="downloadqlt">
<span style="font-size:18px;text-align:center;color:red;font-weight:blod;display:block">程序最新发布动态</span>
<a href="http://www.hadsky.com/read-84-1.html" style="color:Red"><b>有天轻论坛 v1.7 改进版 <span style="font-size:10px;color:red">new</span></b></a>
<a href="http://www.hadsky.com/read-75-1.html">有天轻论坛 v1.6.20151113 <span style="font-size:10px;color:green">old</span></a>
<a href="http://www.hadsky.com/read-61-1.html">有天轻论坛 v1.5.20151106 <span style="font-size:10px;color:red">hot</span></a>
<a href="http://www.hadsky.com/read-53-1.html">有天轻论坛 v1.4.20151101 <span style="font-size:10px;color:green">old</span></a>
<a href="http://www.hadsky.com/read-41-1.html">有天轻论坛 v1.3.20151025 <span style="font-size:10px;color:green">old</span></a>
<a href="http://www.hadsky.com/read-36-1.html">有天轻论坛 v1.2.20151020 <span style="font-size:10px;color:green">old</span></a>
<a href="http://www.hadsky.com/read-30-1.html">有天轻论坛 v1.1.20151017 <span style="font-size:10px;color:green">old</span></a>
<a href="http://www.hadsky.com/read-25-1.html">有天轻论坛 v1.1.20151012 <span style="font-size:10px;color:green">old</span></a>
<a href="http://www.hadsky.com/read-8-1.html">有天轻论坛 v1.0.20151007 <span style="font-size:10px;color:green">old</span></a>
</div>
<div class="downloadqlt" style="padding-top:0px">
<span style="font-size:18px;text-align:center;color:red;font-weight:blod;display:block">程序使用帮助文档</span>
<a href="http://www.hadsky.com/read-77-1.html">轻论坛插件和模板安装方法 <span style="font-size:10px;color:blue">必读</span></a>
<a href="http://www.hadsky.com/read-70-1.html">有天轻论坛版块添加方法 <span style="font-size:10px;color:blue">必读</span></a>
<a href="http://www.hadsky.com/read-71-1.html">有天轻论坛基本设置方法 <span style="font-size:10px;color:blue">必读</span></a>
<a href="http://www.hadsky.com/read-68-1.html">MySQL后台管理表功能说明 <span style="font-size:10px;color:red">new</span></a>
<a href="http://www.hadsky.com/read-67-1.html">有天轻论坛图文安装教程 <span style="font-size:10px;color:red">new</span></a>
<a href="http://www.hadsky.com/read-62-1.html">有天轻论坛版本发布规则说明 <span style="font-size:10px;color:red">new</span></a>
<a href="http://www.hadsky.com/read-54-1.html">有天轻论坛后台进入方法 <span style="font-size:10px;color:red">hot</span></a>
</div>
<div class="downloadqlt" style="padding-top:0px">
<span style="font-size:18px;text-align:center;color:red;font-weight:blod;display:block">插件最新发布动态</span>
<a href="http://www.hadsky.com/read-89-1.html"><b>模板随心换 v0.9.20151115 <span style="font-size:10px;color:red">new</span></b></a>
<a href="http://www.hadsky.com/read-45-1.html">设置静态转动态 v0.9.20151112 <span style="font-size:10px;color:red">new</span></a>
<a href="http://www.hadsky.com/read-45-1.html">百度SEO插件-URL推送插件 <span style="font-size:10px;color:red">new</span></a>
</div>
<div class="downloadqlt" style="padding-top:0px">
<span style="font-size:18px;text-align:center;color:red;font-weight:blod;display:block">模板最新发布动态</span>
<a href="http://www.hadsky.com/read-85-1.html" style="color:blue">经典老式论坛模板 v0.9.20151115 <span style="font-size:10px;color:blue">new</span></a>
<a href="http://www.hadsky.com/read-76-1.html">官方手机模板1 v0.9.20151111 <span style="font-size:10px;color:red">new</span></a>
<a href="http://www.hadsky.com/read-58-1.html">官方手机模板1 v0.9.20151103 <span style="font-size:10px;color:green">old</span></a>
</div>
<div class="downloadqlt" style="padding-top:0px">
<span style="font-size:18px;text-align:center;color:red;font-weight:blod;display:block">手机APP最新发布动态</span>
<a href="http://www.hadsky.com/read-57-1.html">安卓版 v0.9.20151103 <span style="font-size:10px;color:red">new</span></a>
</div>
<div class="downloadqlt" style="padding-top:0px">
<span style="font-size:16px;text-align:center;color:darkblue;font-weight:blod;display:block">puyuetianPHP轻框架</span>
<a href="read-78-1.html" style="color:red">puyuetianPHP v0.9.20151111 <span style="font-size:10px;color:orangered">new</span></a>
</div>
					</div>
  </body>
</html>